<?xml version="1.0" encoding="utf-8" ?>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.newbsd.web.maventest.pojo.User" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户信息修改</title>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/icon.css">

<script type="text/javascript" src="js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/util/easyui/jquery.easyui.min.js"></script>
</head>

<body class="write_bg">
<form class="form-horizontal" action="/maventest/UserAddServlet" method="post">
<table>
  <tr>
    <td height="30"><br>
            <br></td>
  </tr>
</table>
<table >
  <tr>
    <td >修改个人信息</td>
  </tr>
  <tr>
    <td colspan="2"><table>
      <tr>
        <td >注：标有 <span class="text_red">*</span> 处，均为必填项</td>
      </tr>
      <tr>
        <td colspan="2"></td>
        </tr>
    </table>
        <table>
          <tr>
            <td>详细信息</td>
          </tr>
          <tr>
            <td colspan="4" ></td>
          </tr>
          <tr>
            <td>登录名：</td>
            <td >
             <input type="hidden" name="userid" value="${user.userid }"/> 
            <input name="username" type="text" class="text_cray" id="textfield22" value="${user.username}" />
            </td>
          </tr>
          <tr>
            <td >真实姓名：</td>
            <td>
            <input name="realname" type="text" class="text_cray" id="textfield2" value="${user.realname}" />
            </td>
          </tr>
          <tr>
            <td>性 别：</td>
           
            <td >
            <c:choose>
            <c:when test="${user.sex eq '男'}">
            	  <input type="radio" name="sex" value="男" checked="checked"/>
	         	  <span class="text_cray" >
	              <label>男</label>
	              <input type="radio" name="sex" value="女" />
	              <label>女</label>   
	              </span>
            </c:when>
            <c:otherwise>
            	  <input type="radio" name="sex" value="男" />
	         	  <span class="text_cray" >
	              <label>男</label>
	              <input type="radio" name="sex" value="女" checked="checked"/>
	              <label>女</label>   
	              </span>
            </c:otherwise>
            </c:choose>
</td>
 </tr>
          <tr>
            <td>*省份：</td>
            <td>
            <input name="province" type="text" class="text_cray" id="textfield2" value="${user.province}" />            
            </td>
          </tr>
          <tr>
            <td>*城市：</td>
            <td align="left" class="text_cray1">
            <input name="city" type="text" class="text_cray" id="textfield2" value="${user.city}" />            
            </td>
          </tr>
          <tr>
            <td>*证件类型：</td>
            <td>
           <select class="text_cray" name="certtype" id="cardType" value="${user.certType }">
                      <option ${user.certType=='身份证'?'selected = "selected"':''}" >身份证</option>
                      <option  ${user.certType=="港澳通行证"?'selected = "selected"':''}>港澳通行证</option>
                      <option ${user.certType=="台湾通行证"?'selected = "selected"':''}>台湾通行证</option>
                      <option ${user.certType=="护照"?'selected = "selected"':''}>护照</option>
            </select>
           <%--  <input name="textfield2" type="text" class="text_cray" id="textfield2" value="${user.certtype}" />  --%>        
            </td>
          </tr>
          <tr>
            <td>*证件号码：</td>
            <td>
            <input name="cert" type="text" class="text_cray" id="textfield6"  value="${user.cert}" />
            </td>
          </tr>
          <tr>
            <td>*出生日期：</td>
            <td>
            <%-- <input name="textfield7" type="text" class="text_cray" id="textfield7" value="${user.birthday}" /> --%>
            <input name="birthday" class="easyui-datebox"  value="${user.birthday}"/>
            </td>
          </tr>
            
          <tr>
            <td>旅客类型：</td>
            <td>
              <select class="text_cray" id="passengerType" name="usertype" 
            value="${user.userType}">
              	<option  ${user.userType=="成人"?'selected = "selected"':''}>成人</option>
                <option  ${user.userType=="儿童"?'selected = "selected"':''}>儿童</option>
                <option ${user.userType=="学生"?'selected = "selected"':''}>学生</option>
                <option ${user.userType=="残疾军人、伤残人民警察"?'selected = "selected"':''}>残疾军人、伤残人民警察</option>
            </select>         
            </td>
          </tr>
          <tr>
            <td>备注：</td>
            <td>
            <textarea name="content" rows="8" class="text_cray" style="width:100%"></textarea>           
            </td>
          </tr>
        </table><br>
        <table>
          <tr>
            <td></td>
          </tr>
        </table>
        <table>
          <tr>
            <td>
            <input name="button" type="submit" class="buttj" id="button"value="提交">
            </td>
            <td>
            <input name="button2" type="reset" class="butcz" id="button2"value="重置">
            </td>
          </tr>
        </table>
  </table>
  <tr>
    <td>copyright@12306 购票网</td>
  </tr>
</table>
</td>
  </tr>
</table>
</form>
</body>
</html>
